<?php
	echo CHtml::cssFile(Yii::app()->baseUrl.'/assets/css/submenu.css');
?>

<div class="wrapper_submenu">
	<?php
        foreach($adminmenu_array as $menuitem)
        {
            echo "<div class='wrapper_item'>";
				echo CHtml::link(
					"<div class='item'>".
						"<div class='image'>".
                    		CHtml::image(
								Yii::app()->baseUrl."/assets/images/adminmenu/".$menuitem->image).
						"</div>".
						"<div class='text'>".
                    		$menuitem->name.
						"</div>".
                	"</div>",
					array("/". $menuitem->route)
				);
            echo "</div>";
        }
    ?>
</div>